<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <span>提交成功,5s后自动跳转</span>
    <script>
        const span = document.querySelector('span');
        let i = 5;
        setTimeout(()=>{
            location.href = 'www.baidu.com';
        },5000)
    </script>
</body>
</html>